<template>
  <div>
    <h2>这里是profile组件</h2>
    <p>名字：{{profileInfo.name}}</p>
    <p>年龄：{{profileInfo.age}}</p>
    <p>身高：{{profileInfo.height}}</p>
  </div>
</template>

<script>
  export default {
    name: "profile",
    computed:{
      profileInfo(){
        return this.$route.query
      }
    },
    created() {
      console.log('profile created');
    },
    destroyed() {
      console.log('profile destroyed');
    }
  }
</script>

<style scoped>

</style>
